# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-progress
_pkgname=progress
pkgver=1.6.1
pkgrel=1
pkgdesc='Easy to use progress bars for Python.'
arch=('any')
url='https://pypi.org/project/progress/#files'
license=('ISC')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('77699f6d901f6ce80de20b8d1aa5046db32aef7e26c2e834ff9ee0db6e9242fece48373a7d4a4de946eb73dbf901ccb595755cc06a48efe7ce60d84d17e18454')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" -O1 --skip-build
}

